<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page pageEncoding="UTF-8" %>
<!DOCTYPE HTML>
<html>
<head>
    <title>Alerts</title>
    <meta charset="UTF-8"/>
</head>
<body>
<table>
    <tr>
        <th>Время</th>
        <th>Сообщение</th>
        <th>Номер столика</th>
    </tr>
    <c:forEach var="alert" items="${requestScope.alerts}">
        <tr>
            <td>${alert.time}</td>
            <td>${alert.alertMessage}</td>
            <td>${alert.session.table.id}</td>
            <td>
                <form action="showAlert" method="post" accept-charset="utf-8">
                    <input type="hidden" name="alertId" value="${alert.id}"/>
                    <input type="submit" name="delete" value="Удалить сообщение"/>
                </form>
            </td>
        </tr>
    </c:forEach>
</table>
</body>
</html>